// 导入根据业务需要封装好的网络请求模块
import { uniFetch } from '@/apis/uni-fetch';

/**
 * 获取商品列表
 */
export const getGoodsListAPI = (data) => {
  return uniFetch.get(`/api/public/v1/goods/search`, data);
};

/**
 * 获取商品详情
 */
export const getGoodsDetailAPI = (goods_id) => {
  return uniFetch.get(`/api/public/v1/goods/detail`, { goods_id });
};
